package com.zkthink.ceres.msgs.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zkthink.base.R;
import com.zkthink.base.service.SuperService;
import com.zkthink.ceres.msgs.entity.CeresPushMsgs;

import java.util.List;

/**
 * <p>
 * 业务接口
 * 直播的小红心记录
 * </p>
 *
 * @author ck
 * @date 2022-02-28
 */
public interface CeresPushMsgsService extends SuperService<CeresPushMsgs> {
    /**
     * @param mid     客户
     * @param msgType 消息类型
     * @param second  秒
     * @return 返回结果为true时, 代表在second秒内，客户mid,接受过msgType 类型的消息
     */
    Boolean ifPushMsgs(Long mid, List<Integer> msgType, long second);


    /**
     * 直播间是点过自动宴请
     *
     * @param mid
     * @param roomId
     * @return
     */
    Boolean ifLiveAutoPushMsgs(Long mid, String roomId, Integer msgType);

    IPage<CeresPushMsgs> findPushSmsByApp(IPage page, Long mid);


    R readPushMsg(Long id);


    R findPushMsgNum(Long mid);
}
